package com.wm.wmcrm.sys.service;

import com.wm.wmcrm.common.util.PageUtils;
import com.wm.wmcrm.sys.entity.SysRole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wm.wmcrm.sys.model.SysRoleQueryDTO;

import java.util.List;

/**
 * <p>
 * 角色 服务类
 * </p>
 *
 * @author wm
 * @since 2023-02-11
 */
public interface ISysRoleService extends IService<SysRole> {
    PageUtils queryPage(SysRoleQueryDTO queryDTO);
    boolean saveRole(SysRole role);
    boolean updateOne(SysRole role);
    void deleteBatch(Long[] roleIds);
    int checkNameExist(String roleName);
    int deleteBatch(List<String> idList);
    boolean deleteOne(String roleId);

    List<SysRole> queryByUserId(Long userId);
}
